<?php

namespace App\Console\Commands\AntiFraud;

use App\Http\Model\User;
use App\Http\Services\SystemServices;
use App\Http\Services\UserServices;
use App\Lib\BaseConsumer;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class ConsumerRegister extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'mq:consumer:anti_fraud:register';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '数美风险注册风险识别';

    private $service;

    public function __construct()
    {
        parent::__construct();
        $this->service = new SystemServices();
    }

    public function handle()
    {
        while(true) {
            $this->service->deviceRisk();
            sleep(1);
        }
    }
}